<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Draw Pen</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ui-controls-box.setpadded.html">« UI\Controls\Box::setPadded</a></li>
      <li style="float: right;"><a href="ui-draw-pen.clip.html">UI\Draw\Pen::clip »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.ui.html">UI</a></li>
    <li>Draw Pen</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.ui-draw-pen" class="reference">

 <h1 class="title">Draw Pen</h1>
 

 <div class="partintro"><p class="verinfo">(UI 0.9.9)</p>


  <div class="section" id="ui-draw-pen.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    The Pen is passed to the Area Draw event handler, it is used for clipping, filling, stroking, and writing to Draw Paths.
   </p>
  </div>


  <div class="section" id="ui-draw-pen.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">final</span>
      <span class="modifier">class</span> <strong class="classname">UI\Draw\Pen</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.clip.html" class="methodname">clip</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-draw-path.html" class="type UI\Draw\Path">UI\Draw\Path</a></span> <code class="parameter">$path</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.fill.html" class="methodname">fill</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-draw-path.html" class="type UI\Draw\Path">UI\Draw\Path</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="class.ui-draw-brush.html" class="type UI\Draw\Brush">UI\Draw\Brush</a></span> <code class="parameter">$with</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.fill.html" class="methodname">fill</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-draw-path.html" class="type UI\Draw\Path">UI\Draw\Path</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="class.ui-draw-color.html" class="type UI\Draw\Color">UI\Draw\Color</a></span> <code class="parameter">$with</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.fill.html" class="methodname">fill</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-draw-path.html" class="type UI\Draw\Path">UI\Draw\Path</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$with</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.restore.html" class="methodname">restore</a></span>()</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.save.html" class="methodname">save</a></span>()</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.stroke.html" class="methodname">stroke</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-draw-path.html" class="type UI\Draw\Path">UI\Draw\Path</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="class.ui-draw-brush.html" class="type UI\Draw\Brush">UI\Draw\Brush</a></span> <code class="parameter">$with</code></span>, <span class="methodparam"><span class="type"><a href="class.ui-draw-stroke.html" class="type UI\Draw\Stroke">UI\Draw\Stroke</a></span> <code class="parameter">$stroke</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.stroke.html" class="methodname">stroke</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-draw-path.html" class="type UI\Draw\Path">UI\Draw\Path</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="class.ui-draw-color.html" class="type UI\Draw\Color">UI\Draw\Color</a></span> <code class="parameter">$with</code></span>, <span class="methodparam"><span class="type"><a href="class.ui-draw-stroke.html" class="type UI\Draw\Stroke">UI\Draw\Stroke</a></span> <code class="parameter">$stroke</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.stroke.html" class="methodname">stroke</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-draw-path.html" class="type UI\Draw\Path">UI\Draw\Path</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$with</code></span>, <span class="methodparam"><span class="type"><a href="class.ui-draw-stroke.html" class="type UI\Draw\Stroke">UI\Draw\Stroke</a></span> <code class="parameter">$stroke</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.transform.html" class="methodname">transform</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-draw-matrix.html" class="type UI\Draw\Matrix">UI\Draw\Matrix</a></span> <code class="parameter">$matrix</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.write.html" class="methodname">write</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-point.html" class="type UI\Point">UI\Point</a></span> <code class="parameter">$point</code></span>, <span class="methodparam"><span class="type"><a href="class.ui-draw-text-layout.html" class="type UI\Draw\Text\Layout">UI\Draw\Text\Layout</a></span> <code class="parameter">$layout</code></span>)</div>

   }</div>


  </div>

 </div>

 


















































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ui-draw-pen.clip.html">UI\Draw\Pen::clip</a> — Clip a Path</li><li><a href="ui-draw-pen.fill.html">UI\Draw\Pen::fill</a> — Fill a Path</li><li><a href="ui-draw-pen.restore.html">UI\Draw\Pen::restore</a> — Restore</li><li><a href="ui-draw-pen.save.html">UI\Draw\Pen::save</a> — Save</li><li><a href="ui-draw-pen.stroke.html">UI\Draw\Pen::stroke</a> — Stroke a Path</li><li><a href="ui-draw-pen.transform.html">UI\Draw\Pen::transform</a> — Matrix Transform</li><li><a href="ui-draw-pen.write.html">UI\Draw\Pen::write</a> — Draw Text at Point</li></ul>
</div>
</div></div></body></html>